package com.ihr360.cnb.module.common.service;

import com.ihr360.cnb.module.common.service.fallback.EnumServiceFallback;
import com.ihr360.commons.vo.DataAndLabel;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author Stone.Shi
 * @description
 * @date 2018-02-07 09:53:00.
 */
@FeignClient(name = "irenshi-dubbo-provider", fallback = EnumServiceFallback.class)
public interface EnumService {

    @RequestMapping(value = "enum/idCardType", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
    List<DataAndLabel> getEnumIdCardType();
}
